package com.portal.cwegportal.mapper;

import com.portal.cwegportal.input.browserecord.GetBrowseCountInput;
import com.portal.cwegportal.model.BrowseRecord;
import com.portal.cwegportal.model.NewsCollege;
import com.portal.cwegportal.output.browserecord.GetBroweCountOutput;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

@org.apache.ibatis.annotations.Mapper
@Repository
public interface BrowseRecordMapper extends Mapper<BrowseRecord> {

    @Select("SELECT count(*) browseCount from  browse_record where is_deleted=0 and article_id=#{id} and key_type=#{keyType}")
    GetBroweCountOutput getBroweCount(GetBrowseCountInput Item);
}
